package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.management.relation.Role;
import java.util.List;

/**
 * 用户实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user")
public class UserBean {
    /**用户id*/
    @TableId(value = "pk_userId",type = IdType.AUTO)
    private Integer userId;
    /**用户名*/
    @TableField("u_name")
    private String username;
    /**用户密码*/
    @TableField("u_pwd")
    private String pwd;
    /**用户真实姓名*/
    @TableField("u_trueName")
    private String trueName;
    /**用户角色集合*/
    @TableField(exist = false)
    private List<Role> roleList;
}
